<template>
  <div class="secondary-page">
    <el-card style="margin: 20px auto; width: 400px;">
      <el-row>
        <el-col :span="8">
          <div class="title">姓名：</div>
          <div class="data">{{ tableData.name }}</div>
        </el-col>
        <el-col :span="8">
          <div class="title">年龄：</div>
          <div class="data">{{ tableData.age }}</div>
        </el-col>
        <el-col :span="8">
          <div class="title">性别：</div>
          <div class="data">{{ tableData.gender }}</div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <div class="title">专业：</div>
          <div class="data">{{ tableData.major }}</div>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'SecondaryPage',
  data() {
    return {
      tableData: {
        name: '李三',
        age: 20,
        gender: '女',
        major: '计算机科学'
      }
    }
  }
}
</script>

<style scoped>
  .title {
    font-weight: bold;
  }

  .data {
    margin-top: 5px;
  }

  .secondary-page {
    display: flex;
    justify-content: center;
  }
</style>